<extend name="Public/base"/>

<block name="body">

<div class="row">
<div class="col-md-12">

<div class="tabbable tabbable-custom boxless">
<form id="form" action="{:U()}" method="post" class="form-1">

    <div class="tab-content">

        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="fa fa-reorder"></i>
                    {$_GET['scid']?'编辑':'新增'}课程
                    [&nbsp;父导航：<a href="{:U('Courseware/index')}">课程表</a>&nbsp;]
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse"></a>
                    <a href="#portlet-config" data-toggle="modal" class="config"></a>
                    <a href="javascript:;" class="reload"></a>
                    <a href="javascript:;" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->

                <div class="form-body">
                    <div class="form-group">
                        <label>标题<span class="check-tips">（课程标识）</span></label>
                        <input type="text" class="form-control input-xlarge" name="title"
                               value="{$info.title|default=''}">
                    </div>
                    <div class="form-group">
                        <label>周时间<span class="check-tips">（星期几时间）</span></label>

                        <div class="checkbox-list">
                            <volist name="head_list" id="vo">
                            <label class="checkbox-inline">
                                <span><input type="checkbox" value="{$vo.hid}" name="week_time[]"/></span>{$vo.title}
                            </label>
                            </volist>

                        </div>

                    </div>


                    <div class="form-group">
                        <label>排序值<span class="check-tips">（当天的第几节课）</span></label>
                        <input type="text" class="form-control input-xlarge" name="sort"
                               value="{$info.sort|default=''}">
                    </div>

                    <div class="form-group">
                        <label>备注<span class="check-tips">（描述信息）</span></label>
                        <input type="text" class="form-control input-xlarge" name="remark"
                               value="{$info.remark|default=''}">
                    </div>

                </div>
                <if condition="$info neq null">
                    <input type="hidden" name="scid" value="{$info.scid}"/>
                </if>



                <div class="form-actions fluid ">
                    <div class="col-md-offset-3 col-md-9">
                        <button class="btn green submit-btn ajax-post" id="submit" type="submit"
                                target-form="form-1">确 定
                        </button>
                        <button class="btn default btn-return"
                                onclick="javascript:history.back(-1);return false;">返 回
                        </button>
                    </div>
                </div>

                <!-- END FORM-->
            </div>
        </div>

    </div>

</form>
</div>
</div>
</div>
</block>

<block name="script">
<!-- BEGIN PAGE LEVEL SCRIPTS -->
<script src="__STATIC__/scripts/app.js"></script>
<!-- END PAGE LEVEL SCRIPTS -->
<script>
jQuery(document).ready(function () {
// initiate layout and plugins
App.init();
highlight_subnav('{:U('Courseware/index')}');
});
</script>
</block>